package com.cxq.leetcode;

/**
 * Created by cxq on 2020/8/1.
 */
public class ReverseListNode {
    public static void main(String[] args) {
        ListNode head = new ListNode(1);
        head.add(new ListNode(2)).add(new ListNode(3)).add(new ListNode(4)).add(new ListNode(5));
        head.show();

        System.out.println("------------------------------");
        head.resverListNode();
        head.show();


    }
}
